<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%--<x:parse xml="${param.xmlstr}" var="xmlData" />--%>

<div class="t_bar">
	1、核心指标
</div>
<table class="t_css" width="100%" border="0" cellpadding="0"
	id="performances1" cellspacing="1">

	<tr class="t_tr">
		<td align="center" width="30%" nowrap>指标类别</td>
		<td class="TblHead" align="center" width="40%" nowrap>明细指标</td>
		<td class="TblHead" align="center" width="30%">预期绩效目标</td>
	</tr>
	<tr>

		<td align="center" style="" rowspan="6">新成果形态</td>

		<td align="left" style="" nowrap>1、创新成果形态（项）</td>

		<td align="center">
			<input type="text" style="text-align: right;" name="performances/performance1" id="performance_1" value="<x:out select="$xmlData/data/performances/performance1" />"
			 class ="gray required min:1" disabled label="核心指标-->新成果形态-->1、创新成果形态"
			onfocus="InitInput.setNumber(this,7,0,0)"
			/>
		</td>

	</tr>

	<tr>
		<td align="left" style="" nowrap>（1）新工艺</td>

		<td align="center">
			<input type="text" style="text-align: right;" name="performances/performance2" id="performance_2" value="<x:out select="$xmlData/data/performances/performance2" />"
			 class ="" label="核心指标-->新成果形态-->1、创新成果形态-->（1）新工艺"
			onfocus="InitInput.setNumber(this,7,0,0)"
			onchange="countNum('','performance_2,performance_3,performance_4,performance_5,performance_6','performance_1');"
			/>
		</td>
	</tr>

	<tr>
		<td align="left" style="" nowrap>（2）新产品</td>

		<td align="center">
			<input type="text" style="text-align: right;" name="performances/performance3" id="performance_3" value="<x:out select="$xmlData/data/performances/performance3" />"
			 class ="" label="核心指标-->新成果形态-->1、创新成果形态-->（2）新产品"
			onfocus="InitInput.setNumber(this,7,0,0)"
				onchange="countNum('','performance_2,performance_3,performance_4,performance_5,performance_6','performance_1');"
			/>

		</td>
	</tr>
	<tr>
		<td align="left" style="" nowrap>（3）新技术</td>

		<td align="center">
			<input type="text" style="text-align: right;" name="performances/performance4" id="performance_4" value="<x:out select="$xmlData/data/performances/performance4" />"
			 class ="" label="核心指标-->新成果形态-->1、创新成果形态-->（3）新技术"
			onfocus="InitInput.setNumber(this,7,0,0)"
				onchange="countNum('','performance_2,performance_3,performance_4,performance_5,performance_6','performance_1');"
			/>
		</td>
	</tr>
	<tr>
		<td align="left" style="" nowrap>（4）新装置</td>

		<td align="center">
			<input type="text" style="text-align: right;" name="performances/performance5" id="performance_5" value="<x:out select="$xmlData/data/performances/performance5" />"
			  class =""  label="核心指标-->新成果形态-->1、创新成果形态-->（4）新装置"
			onfocus="InitInput.setNumber(this,7,0,0)"
				   onchange="countNum('','performance_2,performance_3,performance_4,performance_5,performance_6','performance_1');"/>
		</td>
	</tr>
	<tr>
		<td align="left" style="" nowrap>（5）其他</td>

		<td align="center">
			<input type="text" style="text-align: right;" name="performances/performance6" id="performance_6" value="<x:out select="$xmlData/data/performances/performance6" />"
			 class ="" label="核心指标-->新成果形态-->1、创新成果形态-->（5）其他"
			onfocus="InitInput.setNumber(this,7,0,0)"
				   onchange="countNum('','performance_2,performance_3,performance_4,performance_5,performance_6','performance_1');"
			/>
		</td>
	</tr>
	<tr>
		<td align="center" style="" rowspan="6">经济效益指标</td>
		<td align="left" style="" nowrap>1、新增销售（万元）</td>

		<td align="center">
			<input type="text" style="text-align: right;" name="performances/performance7" id="performance_7" value="<x:out select="$xmlData/data/performances/performance7" />"
			 class ="required"  label="核心指标-->经济效益指标-->1、新增销售"
			onfocus="InitInput.setNumber(this,7,2,0)"
			/>
		</td>
	</tr>
	<tr>
		<td align="left" style="" nowrap>2、新增利润（万元）</td>

		<td align="center">
			<input type="text" style="text-align: right;" name="performances/performance8" id="performance_8" value="<x:out select="$xmlData/data/performances/performance8" />"
			 class ="" label="核心指标-->经济效益指标-->2、新增利润"
			onfocus="InitInput.setNumber(this,7,2,0)"
			/>
		</td>
	</tr>
	<tr>
		<td align="left" style="" nowrap>3、新增税收（万元）</td>

		<td align="center">
			<input type="text" style="text-align: right;" name="performances/performance9" id="performance_9" value="<x:out select="$xmlData/data/performances/performance9" />"
			 class ="" label="核心指标-->经济效益指标-->3、新增税收"
			onfocus="InitInput.setNumber(this,7,2,0)" />
		</td>
	</tr>
	<tr>
		<td align="left" style="" nowrap>4、带动企业研发投入（万元）</td>

		<td align="center">
			<input type="text" style="text-align: right;" name="performances/performance10" id="performance_10" value="<x:out select="$xmlData/data/performances/performance10" />"
			  class =""  label="核心指标-->经济效益指标-->4、带动企业研发投入"
			onfocus="InitInput.setNumber(this,7,2,0)"

			/>
		</td>
	</tr>
	<tr>
		<td align="left" style="" nowrap>5、拉动产业投资（万元）</td>

		<td align="center">
			<input type="text" style="text-align: right;" name="performances/performance11" id="performance_11" value="<x:out select="$xmlData/data/performances/performance11" />"
			 class ="" label="核心指标-->经济效益指标-->5、拉动产业投资"
			onfocus="InitInput.setNumber(this,7,2,0)"
			/>
		</td>
	</tr>
	<tr>
		<td align="left" style="" nowrap>6、建成中试生产线（个）</td>

		<td align="center">
			<input type="text" style="text-align: right;" name="performances/performance12" id="performance_12" value="<x:out select="$xmlData/data/performances/performance12" />"
			 class ="" label="核心指标-->经济效益指标-->6、建成中试生产线"
			onfocus="InitInput.setNumber(this,7,0,0)"
			/>
		</td>
	</tr>
	<tr>
		<td align="center" style="" rowspan="10">知识产权</td>
		<td align="left" style="" nowrap>1、专利授权数（项）</td>

		<td align="center">
			<input type="text" style="text-align: right;" name="performances/performance13" id="performance_13" value="<x:out select="$xmlData/data/performances/performance13" />"
			 class ="gray" disabled label="核心指标-->知识产权-->1、专利授权数"
			onfocus="InitInput.setNumber(this,7,0,0)"
			/>
		</td>
	</tr>
	<tr>
		<td align="left" style="" nowrap>（1）授权发明专利</td>

		<td align="center">
			<input type="text" style="text-align: right;" name="performances/performance14" id="performance_14" value="<x:out select="$xmlData/data/performances/performance14" />"
			  class =""  label="核心指标-->知识产权-->1、专利授权数-->（1）授权发明专利"
				   onchange="countNum('','performance_14,performance_15,performance_16','performance_13');"
			onfocus="InitInput.setNumber(this,7,0,0)" />
		</td>
	</tr>
	<tr>
		<td align="left" style="" nowrap>（2）实用新型</td>

		<td align="center">
			<input type="text" style="text-align: right;" name="performances/performance15" id="performance_15" value="<x:out select="$xmlData/data/performances/performance15" />"
			 class ="" label="核心指标-->知识产权-->1、专利授权数-->（2）实用新型"
			onfocus="InitInput.setNumber(this,7,0,0)"
				   onchange="countNum('','performance_14,performance_15,performance_16','performance_13');"
			/>
		</td>
	</tr>
	<tr>
		<td align="left" style="" nowrap>（3）外观设计</td>

		<td align="center">
			<input type="text" style="text-align: right;" name="performances/performance16" id="performance_16" value="<x:out select="$xmlData/data/performances/performance16" />"
			 class ="" label="核心指标-->知识产权-->1、专利授权数-->（3）外观设计"
			onfocus="InitInput.setNumber(this,7,0,0)"
				   onchange="countNum('','performance_14,performance_15,performance_16','performance_13');"
			/>
		</td>
	</tr>
	<tr>
		<td align="left" style="" nowrap>2、软件著作权授权数（项）</td>

		<td align="center">
			<input type="text" style="text-align: right;" name="performances/performance17" id="performance_17" value="<x:out select="$xmlData/data/performances/performance17" />"
			 class ="" label="核心指标-->知识产权-->2、软件著作权授权数"
			onfocus="InitInput.setNumber(this,7,0,0)" />
		</td>
	</tr>
	<tr>
		<td align="left" style="" nowrap>3、制订标准数（项）</td>

		<td align="center">
			<input type="text" style="text-align: right;" name="performances/performance18" id="performance_18" value="<x:out select="$xmlData/data/performances/performance18" />"
			 class ="gray" disabled label="核心指标-->知识产权-->3、制订标准数"
			onfocus="InitInput.setNumber(this,7,0,0)" />
		</td>
	</tr>
	<tr>
		<td align="left" style="" nowrap>（1）国际标准</td>

		<td align="center">
			<input type="text" style="text-align: right;" name="performances/performance19" id="performance_19" value="<x:out select="$xmlData/data/performances/performance19" />"
			 class ="" label="核心指标-->知识产权-->3、制订标准数-->（1）国际标准"
				   onchange="countNum('','performance_19,performance_20,performance_21,performance_22','performance_18');"
			onfocus="InitInput.setNumber(this,7,0,0)" />
		</td>
	</tr>
	<tr>
		<td align="left" style="" nowrap>（2）国家标准</td>

		<td align="center">
			<input type="text" style="text-align: right;" name="performances/performance20" id="performance_20" value="<x:out select="$xmlData/data/performances/performance20" />"
			 class =""  label="核心指标-->知识产权-->3、制订标准数-->（2）国家标准"
				   onchange="countNum('','performance_19,performance_20,performance_21,performance_22','performance_18');"
			onfocus="InitInput.setNumber(this,7,0,0)" />
		</td>
	</tr>
	<tr>
		<td align="left" style="" nowrap>（3）地方标准</td>

		<td align="center">
			<input type="text" style="text-align: right;" name="performances/performance21" id="performance_21" value="<x:out select="$xmlData/data/performances/performance21" />"
			 class ="" label="核心指标-->知识产权-->3、制订标准数-->（3）地方标准"
			onfocus="InitInput.setNumber(this,7,0,0)"
				   onchange="countNum('','performance_19,performance_20,performance_21,performance_22','performance_18');"
			/>
		</td>
	</tr>
	<tr>
		<td align="left" style="" nowrap>（4）企业标准</td>

		<td align="center">
			<input type="text" style="text-align: right;" name="performances/performance22" id="performance_22" value="<x:out select="$xmlData/data/performances/performance22" />"
			 class ="" label="核心指标-->知识产权-->3、制订标准数-->（4）企业标准"
			onfocus="InitInput.setNumber(this,7,0,0)"
				   onchange="countNum('','performance_19,performance_20,performance_21,performance_22','performance_18');"
			/>
		</td>
	</tr>
	</table>
<div class="t_bar">其他成果（限5条）</div>
<table class="table01 t_css" width="100%" border="0" cellpadding="0"
	   id="tblPerformances" cellspacing="1">
	<thead>
	<tr class="t_tr">
		<td class="TblHead" align="center" width="5%" >选择</td>
		<td class="TblHead" align="center" width="5%" >序号</td>
		<td class="TblHead" align="center" width="50%">明细指标</td>
		<td class="TblHead" align="center" width="40%">预期绩效目标</td>
	</tr>
	</thead>
	<tbody id="">
	<tr style="display: none">
		<td align="center">
			<input type="radio" class="radiobutton" name="selPerformances">

		</td>
		<td align="center">
			<span name="performances|performance[0]@seq_no">[index]</span>
		</td>
		<td align="center">
			<input  name="performances|performance[0]|detailed_indicators" label="明细指标" value=""
					class="required input_text" maxlength="30" />
		</td>
		<td align="center">
			<input  name="performances|performance[0]|expected_performance" label="预期绩效目标" value=""
					class="required input_text" style="text-align: right;" onfocus="InitInput.setNumber(this,7,0,0)" />
		</td>
	</tr>
	<c:set value="0" var="index" scope="page" />
	<x:forEach select="$xmlData/data/performances/performance" var="performance">
		<c:choose>
			<c:when test="${index<10}">
				<c:set value="0" var="flag" scope="page" />
			</c:when>
			<c:otherwise>
				<c:set value="" var="flag" scope="page" />
			</c:otherwise>
		</c:choose>
		<tr>
			<td>
				<input type="radio" class="radiobutton" name="selPerformances">
			</td>
			<td align="center">
					<span name="performances/performance[${flag}${index}]@seq_no">
						<x:out select="$performance/@seq_no" />
					</span>
			</td>
			<td align="center">
				<input  name="performances/performance[${flag}${index}]/detailed_indicators" label="明细指标" maxlength="30"
						class="required input_text" value="<x:out select="$performance/detailed_indicators"/>"/>
			</td>
			<td align="center">
				<input  name="performances/performance[${flag}${index}]/expected_performance" label="预期绩效目标"
						onfocus="InitInput.setNumber(this,7,0,0)" style="text-align: right;"
						class="required input_text" value="<x:out select="$performance/expected_performance"/>"/>
			</td>
		</tr>
		<c:set value="${index+1}" var="index" scope="page" />
	</x:forEach>
	</tbody>
</table>
<table width="98%" align="center">
	<tr>
		<td>
			<input class="button_02" name="cmdAddbefore" type=button value="添加"
				   onclick="if(checkTabLimit('tblPerformances',5,'其他成果最多只能填写5条')){addNewRow('tblPerformances');changeCss('tblPerformances')}try{top.resizeFrame();}catch(e){}" />
			<input class="button_02" name="cmdMovePrev" type=button value="上移"
				   onclick="movePrev('tblPerformances','selPerformances');changeCss('tblPerformances')" />
			<input class="button_02" name="cmdMoveNext" type=button value="下移"
				   onclick="moveNext('tblPerformances','selPerformances');changeCss('tblPerformances')" />
			<input class="button_02" name="cmddel" type=button value="删除"
				   onclick="deleteSelectedRow('tblPerformances','其他成果');changeCss('tblPerformances')" />
		</td>
	</tr>
</table>
<div class="t_bar">2、其他指标</div>
<table class="table01 t_css" width="100%" border="0" cellpadding="0"
	   id="performances3" cellspacing="1" style="word-break: break-all">

	<tr>
		<td align="center" style="" width="20%" >其他需要考核的内容（请注明类型并量化指标）(限5000字)</td>
		<td>
			<textarea name="performances/summary" rows=7 style="width: 98%;" label="其他需要考核的内容"  class="input_textarea  maxlength:5000"><x:out select="$xmlData/data/performances/summary" /></textarea>
			<input type="hidden" name="performances/summary_hidden" id="performances/summary_hidden" value="<x:out select="$xmlData/data/performances/summary_hidden" />"/>
		</td>
	</tr>
</table>
<script type="text/javascript">
function countNum(idStart, countStr, totalStr) {

	var indexs = countStr.split(",");
	var count = 0;
	for ( var i = 0; i < indexs.length; i++) {
		var fund = $("#" + idStart + indexs[i]).val();
		if (!$.isNumeric(fund))
			fund = "0";
		count = count + parseInt(fund,10);
	}

	// count=formatNumber(count.toString(),9,4,4);//格式化金额
	$("#" + idStart + totalStr).val(count);
}

$(function() {
    $("#tblPerformances tr:even").addClass("li_1");
    $("#tblPerformances tr:odd").addClass("li_2");
});

function synchronizationAmount1(){
    var built_institute=$("#built_institute").val();
    if(built_institute !=  ""){
        $("span[id='built_institute_[00]']").html($("#built_institute").val());
        /*$("#total_fund_18").val(parseFloat($("#request_amount").val()).toFixed(2));*/
    }else if(built_institute ==  ""){
        $("span[id='built_institute_[00]']").html("");
    }
}
</script>